home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2001 May / SGI IRIX Base Documentation 2001 May.iso / usr / share / catman / p_man / cat3 / f90 / char.z / char
Encoding:
Text File  |  1998-10-30  |  2.6 KB  |  62 lines

  1. CHAR(3I)                                               Last changed: 1-6-98
  2.  
  3.  
  4. NNAAMMEE
  5.      CCHHAARR, IICCHHAARR - Converts integer to character and vice versa
  6.  
  7. SSYYNNOOPPSSIISS
  8.      CCHHAARR(([II==]_i,, [KKIINNDD==]_k_i_n_d))
  9.  
  10.      IICCHHAARR(([CC==]_c))
  11.  
  12. IIMMPPLLEEMMEENNTTAATTIIOONN
  13.      UNICOS, UNICOS/mk, and IRIX systems
  14.  
  15. SSTTAANNDDAARRDDSS
  16.      Fortran 90
  17.  
  18. DDEESSCCRRIIPPTTIIOONN
  19.      CCHHAARR and IICCHHAARR are inverse functions.
  20.  
  21.      CCHHAARR converts an integer or Boolean argument to a character specified
  22.      by the ASCII collating sequence.  IICCHHAARR converts a character argument
  23.      to an integer based on the character position in the collating
  24.      sequence.
  25.  
  26.      These intrinsic functions accept the following arguments:
  27.  
  28.      _i     Must be of type integer or Boolean.  If of type integer, _i must
  29.            be in the range 0 <= _i <= 255.
  30.  
  31.      _k_i_n_d  Must be a scalar integer initialization expression.
  32.  
  33.      _c     Must be of type character and of length one.
  34.  
  35.      The type conversion routines assign the appropriate type to Boolean
  36.      arguments without shifting or manipulating the bit patterns they
  37.      represent.  For example, CCHHAARR(_i) returns the _ith character in the
  38.      collating sequence.
  39.  
  40.      CCHHAARR and IICCHHAARR are elemental functions.  The names of these intrinsics
  41.      cannot be passed as arguments.
  42.  
  43. RREETTUURRNN VVAALLUUEESS
  44.      For CCHHAARR, the result is a character of length one.  If the _k_i_n_d
  45.      parameter is present, the kind type parameter is that specified by
  46.      _k_i_n_d.  Otherwise the kind type parameter is that of the default
  47.      character type.  The result is the character in position _i of the
  48.      ASCII collating sequence associated with the specified kind type
  49.      parameter.
  50.  
  51.      For IICCHHAARR, the result is the position _c in the collating sequence
  52.      associated with the kind type parameter of _c and is in the range
  53.      0 <= IICCHHAARR((_c)) <= 255.  For any characters CC and DD capable of being
  54.      represented, CC ..LLEE.. DD is true if and only if IICCHHAARR ((CC)) ..LLEE.. IICCHHAARR((DD))
  55.      is true and CC ..EEQQ.. DD is true if and only if IICCHHAARR((CC)) ..EEQQ.. IICCHHAARR((DD)) is
  56.      true.
  57.  
  58. SSEEEE AALLSSOO
  59.      _I_n_t_r_i_n_s_i_c _P_r_o_c_e_d_u_r_e_s _R_e_f_e_r_e_n_c_e _M_a_n_u_a_l, publication SR-2138, for the
  60.      printed version of this man page.
  61.  
  62.